<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('信息录入系统')" />
</head>
<body>
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <p class="select-title">村级信息录入系统</p>
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "jjm/xiang";
    $(function() {
        var options = {
            url : prefix + "/infoInputList",
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            columns:[{
                title : '编号',
                field : 'deptId'
            },{
                title : '村',
                field : 'deptName'
            },{
                title : '操作',
                align: 'center',
                formatter: function(value, row, index) {
                    var actions = [];
                    actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.modal.openTab(\'居民信息录入\',\'jjm/clientUser?villageId=' + row.deptId + '\')"><i class="fa fa-edit"></i>居民信息录入</a> ');
                    actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.modal.openTab(\'洁净煤发放信息录入\',\'/jjm/clientUserorder/deliverInfo/' + row.deptId + '\')"><i class="fa fa-edit"></i>洁净煤发放信息录入</a> ');
                    return actions.join('');
                }
            }]
        }
        $.table.init(options);
    });
</script>
</body>
</html>